import http from "@/utils/http2.js";
export function getcode() {
  return http.post("/v1/order/getcode");
}
export function getpcode() {
  return http.post("/v1/porder/getcode");
}
export function gethcode() {
  return http.post("/v1/horder/getcode");
}

/**
 * 详情
 * @param {*} data
 * @returns
 */
export function save(data) {
  return http.post("/v1/order/save", data);
}
export function query(data) {
  return http.post("/v1/order/query", data);
}
export function hquery(data) {
  return http.post("/v1/horder/query", data);
}
export function pquery(data) {
  return http.post("/v1/porder/query", data);
}
export function psave(data) {
  return http.post("/v1/porder/save", data);
}
export function hsave(data) {
  return http.post("/v1/horder/save", data);
}
export function updateStatus(data) {
  return http.post("/v1/order/updateStatus", data);
}
export function pUpdateStatus(data) {
  return http.post("/v1/porder/updateStatus", data);
}
export function hUpdateStatus(data) {
  return http.post("/v1/horder/updateStatus", data);
}
export function getall(data) {
  return http.post("/v1/order/all", data);
}
